package comp.style.state
{
	public class SkinSprite extends Skin
	{
		public function SkinSprite(skin:Class=null, defaultSkin:Class=null)
		{
			super(skin, defaultSkin);
		}
		
		override public function doState(ui:*):*
		{
			if(_realSkin)
			{
//				_realSkin.width=ui.width;
//				_realSkin.height=ui.height;					
				ui.addChildAt(_realSkin,0);
			}
		}
	}
}